package com.linghu.springcloud;

import com.linghu.springcloud.config.RibbonRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author 令狐荣豪
 * @version 1.0
 */

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})//排除数据源的自动配置
@EnableEurekaClient
@EnableDiscoveryClient
@RibbonClient(name = "MEMBER-SERVICE-PROVIDER",configuration = RibbonRule.class)
public class MemberConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(MemberConsumerApplication.class,args);
    }
}
